package com.shen.service.impl;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.shen.service.BaseServiceImpl;
import com.shen.service.LoginService;

public class LoginServiceImpl extends BaseServiceImpl implements LoginService {
	
	private Logger logger = LoggerFactory.getLogger(LoginServiceImpl.class);
	
	public boolean checkUser(String username, String password) {
		List<?> users = super.find("from User where username=?",new String[]{username});
		logger.debug("数量="+users.size());
		return users.size()>0;
	}
	
}
